package com.xk.service;

import com.xk.pojo.Page;
import com.xk.pojo.Teacher;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface TeacherService {
    List<Teacher> getAllTeachers();

    Teacher getTeacherById(Integer id);

    int deleteTeacherById(Integer id);

    int updateTeacherById(Teacher teacher);

    String addTeacher(Teacher teacher);

    //获取第pageNumber页，每页显示的记录数为pageSize的教师列表
    Page<Teacher> getTeacherListByPage(Integer pageNumber,Integer pageSize,String search);

}
